package com.itheima.proxydemo1;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class Star implements StarService {
    private String name;

    @Override
    public void sing(String songName) {
        System.out.println(this.name + "在唱歌：" + songName);
    }

    @Override
    public String dance() {
        System.out.println(this.name + "在跳舞");
        return "谢谢！";
    }
}
